

#include <iostream>
#include <cmath>
using namespace std;

void dicesProbability(int n)
{
	int arrA[6*n]{0};
	int arrB[6*n]{0};
	int r = 2,idx = 0;
	for(int i = 0 ; i < 6 ; ++i)
		arrA[i] = 1;
	while(r<=n)
	{
		idx = r-1;
		while(idx < 6*r)
		{
			int sum = 0,i = 1,t = idx;
			while( t-i >= 0 && i <= 6)
			{
				sum+= arrA[t-i];
				++i;
			}
			arrB[idx++] = sum;
		}
		cout<<" n : "<<r<<endl;
		for(int i = 0 ; i < 6*n ; ++i)
		{
			arrA[i] = arrB[i];
			if(arrA[i] != 0)
				printf("%.4f,",(double)(arrA[i]/pow(6,r)));
			arrB[i] = 0;
		}
		cout<<endl;
		++r;
	}
}

int main()
{
	dicesProbability(11);
	return 0;
}